ALTER TABLE IF EXISTS public."AppointmentTransaction"
ADD COLUMN "SalucroStatusCode" integer,
ADD COLUMN "SalucroTransactionId" text,
ADD COLUMN "CreatedBy" integer NOT NULL default 0,
ADD COLUMN "CreatedDate" timestamp(6) without time zone NOT NULL default current_date,
ADD COLUMN "LocationId" integer,
ADD COLUMN "ReceiptTypeId" integer,
ADD COLUMN "ReceiptAreaTypeId" integer;
----------------------------------------------
ALTER TABLE IF EXISTS public."AppointmentTransaction"
ADD CONSTRAINT "AppointmentTransaction_LocationId_fkey" FOREIGN KEY ("LocationId")
REFERENCES public."Location" ("LocationId") MATCH SIMPLE
ON UPDATE NO ACTION
ON DELETE NO ACTION;
-----------------------------------------